package models;

import play.db.jpa.Model;
import utils.Convert;

import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by Administrator on 2018-04-14.
 */
@Entity
public class cms_news extends base_entity {
    public Date created_date;
    public String title;
    public String filename;
    public long read_count;
    public String content;
    public String summary;
    public long channel_id;
    public Date modify_date;
    public String channel_name;

    public String getCreated_date() {
        return Convert.dateToStr(created_date,"yyyy-MM-dd HH:mm:ss","");
    }

    public void setCreated_date(Date created_date) {
        this.created_date = created_date;
    }

    public String getModify_date() {
        return Convert.dateToStr(modify_date,"yyyy-MM-dd HH:mm:ss","");
    }

    public void setModify_date(Date modify_date) {
        this.modify_date = modify_date;
    }
}
